<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <head th:replace="common/head"/>
</head>
<body>
<div class="x-body">
    <form class="layui-form layui-form-pane" action="/purchaseBase/doAdd">
        <div class="layui-inline" style="margin-bottom: 15px">
            <label class="layui-form-label">供货商</label>
            <div class="layui-input-inline" style="width: 300px">
                <select name="supplierId" lay-verify="required" lay-search="">
                    <option value="">直接选择或搜索选择</option>
                    <th:block th:each="map: ${supplierList}">
                        <option th:value="${map.userId}" th:text="${map.userName}"></option>
                    </th:block>
                </select>
            </div>
        </div>
        <div class="layui-inline" style="margin-bottom: 15px">
            <label class="layui-form-label">付款状态</label>
            <div class="layui-input-block" pane>
                <th:block lay-verify="required" th:each="map: ${payTypeEnum}">
                    <input type="radio" name="payType" th:value="${map.key}" th:title="${map.value}" th:checked="${map.key}==1">
                </th:block>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">运费</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="deliveryMoney" lay-verify="checkDec" placeholder="非必填,正数" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">进货时间</label>
            <div class="layui-input-inline">
                <input type="text" name="purchaseTime" lay-verify="required|checkDayTime" placeholder="yyyy-MM-dd HH:mm:ss"
                       class="layui-input dayTime">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">实际付款</label>
            <div class="layui-input-block" style="width: 300px">
                <input type="text" name="realPayMoney" lay-verify="checkDec" placeholder="非必填,默认0,正数"
                       autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="remark" placeholder="非必填" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" style="margin-left:200px;" lay-submit lay-filter="submit">提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<div th:replace="common/js"></div>
<div th:replace="common/setting"></div>
<script type="text/javascript">
    layui.use('xform');
</script>
</body>
</html>
